Git 中文显示为编码

问题描述

git status 之后,显示为乱码

Git 中文显示为编码

解决办法

1
git config --global core.quotepath false

Git 中文显示为编码

其他编码问题

1
2
3
4
5
6
7
8
git config --global core.quotepath false           # git status 乱码
git config --global gui.encoding utf-8 # git gui 乱码
git config --global i18n.commit.encoding utf-8 # git commit 乱码
git config --global i18n.logoutputencoding utf-8 # git log 乱码
# linux bash 环境下
export LESSCHARSET=utf-8
# windows cmd环境下:
set LESSCHARSET=utf-8

Git 中文显示为编码
https://blog.pangcy.cn/2023/05/05/服务器运维/Git/Git 中文显示为编码/
作者
ziYang | 子洋
发布于
2023年5月5日
许可协议